<?php
/**
 * Include specific content info layout file
 * @author Łukasz Torba 2013
 */
function smarty_function_GetContent($params, &$smarty)
{
    $inc = $smarty->getTemplateVars('ContentInclude');
    if($inc != null)    
    {
        if(\Api\Config::$debug)
        {
            $smarty->clearCompiledTemplate($inc);
        }
    
        return $smarty->fetch($inc);
    }
}
?>